#include <stdio.h>
#include <stdlib.h>
#include "QHDX_main.h"

int main()
{
	short Selection, ID;
	system("clear");
	ID = QHDX_Welcome();
	while(1)
	{
		Selection = QHDX_Menu(ID);
		switch(Selection)
		{
			case 0:
			{
				printf("\n感谢使用清华大学系统，期待下一次与你相见\n");
				//return是函数返回 exit为进程返回
				exit(0);//正常返回为0 非正常为1
			}
			break;
						
			case 1:
			{
				AddStudentInfo();
			}
			break;
			
			case 2:
			{			
				DeleteStudentInfo();
			}
			break;
			
			case 3:
			{
				UpdataStudentInfo();	
			}
			break;

			case 4:
			{
				FindStudentInfo();
			}
			break;

			case 5:
			{
					
			}
			break;
			
			default:
			{
				printf("您输入的数字有误,请重新输入");
				while(getchar() != '\n');		
			}
			break;
		}
	}
	return 0;
}
